using UIFramwork;
using UnityEngine.UI;



[UIDetail("", "UI Page/BlackPage")]
public class BlackPage : UIBase
{
    public Button btn;


    public override void CreateUI()
    {
        base.CreateUI();

        btn = transform.GetComponentInChildren<Button>();
    }
    public override void ActiveUI()
    {
        base.ActiveUI();
        btn.onClick.AddListener(OnExamplePageOpened);
    }
    public override void DeActiveUI()
    {
        base.DeActiveUI();
        btn.onClick.RemoveListener(OnExamplePageOpened);
    }


    public void OnExamplePageOpened()
    {
        UIMgr.Open<ExamplePage>();
    }
}
